Remove dup "--os=OSNAME" line in output of "ostree admin config-diff --help"
authorHuijing Hei <hhei@redhat.com>
Wed, 25 May 2022 03:15:39 +0000 (11:15 +0800)
committerHuijing Hei <hhei@redhat.com>
Wed, 25 May 2022 03:15:39 +0000 (11:15 +0800)
Small fix for https://github.com/ostreedev/ostree/issues/2594

src/ostree/ot-admin-builtin-diff.c

index 167ec420b4549298d1a3f25cba8c63514170ac14..73e49d4e953958977a0d197465700608134759a3 100644 (file)
@@ -39,7 +39,6 @@ gboolean
 ot_admin_builtin_diff (int argc, char **argv, OstreeCommandInvocation *invocation, GCancellable *cancellable, GError **error)
 {
   g_autoptr(GOptionContext) context = g_option_context_new ("");
-  g_option_context_add_main_entries (context, options, NULL);
 
   g_autoptr(OstreeSysroot) sysroot = NULL;
   if (!ostree_admin_option_context_parse (context, options, &argc, &argv,